// ChatServerDlg.h : header file
//

#pragma once


// CChatServerDlg dialog
class CChatServerDlg : public CDialog
{
// Construction
public:
	CChatServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CHATSERVER_DIALOG };

// Implementation
protected:
	HICON m_hIcon;

	virtual BOOL OnInitDialog();
	virtual void DoDataExchange(CDataExchange* pDX);
	virtual void OnOK(){};
	virtual void OnCancel();


private:
	CListBox m_LogBoard;
	DECLARE_EASYSIZE;
	
protected:
	DECLARE_MESSAGE_MAP()

	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSize(UINT nType, int cx, int cy);

	//menu
	afx_msg void OnFileExit();
	afx_msg void OnFileStart();
	afx_msg void OnFileStop();
	afx_msg void OnFileSettings();
	afx_msg void OnToolsAnalyzechatmessage();	
	afx_msg void OnToolsUpdateclientslist();

	//socket events
	afx_msg LRESULT  OnAcceptClientGood(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT  OnAcceptClientFail(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT  OnServerStarted(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT  OnServerStoped(WPARAM wParam, LPARAM lParam);	
	afx_msg LRESULT  OnClientDisconnect(WPARAM wParam, LPARAM lParam);	
	afx_msg LRESULT  OnClientName(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT  OnClientNameDuplicate(WPARAM wParam, LPARAM lParam);
	
};
